{extend name="index/base" /}
{block name="main"}
<link rel="stylesheet" href="__STATIC__/kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="__STATIC__/kindeditor/plugins/code/prettify.css" />
<a href="{:url('admin')}" class="btn btn-default">返回</a>
<form action="?" method="post">
    <input type="hidden" name="id" value="{$data.id|default='0'}" />
    <div class="form-group">
        <label>科目名称</label>
        <input type="text" class="form-control" placeholder="用户名" name="name" value="{$data.name|default=''}">
    </div>
    <div class="form-group">
        <label>内容</label>
        <textarea id="editor_id" name="content" style="width:700px;height:200px;visibility:hidden;">{$data.content|default=''}</textarea>
    </div>
    <button type="submit" class="btn btn-default">Submit</button>
</form>
{/block}
{block name="javascript"}
<script charset="utf-8" src="__STATIC__/kindeditor/kindeditor-all.js"></script>
<script charset="utf-8" src="__STATIC__/kindeditor/lang/zh-CN.js"></script>
<script charset="utf-8" src="__STATIC__/kindeditor/plugins/code/prettify.js"></script>
<script>
    KindEditor.ready(function(K) {
        window.editor = K.create('#editor_id');
    });
</script>
{/block}